﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService.Common
{
    public interface ILoginServices
    {
        /// <summary>
        /// 用户登录接口：获取Token值
        /// </summary>
        /// <param name="name">用户名</param>
        /// <param name="pass">密码</param>
        /// <param name="code">验证码</param>
        /// <returns></returns>
        public Task<MessageModel<TokenInfoModel>> UserLogin(string name = "", string pass = "",string code = "");

        /// <summary>
        /// 请求刷新Token（以旧换新）
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public Task<MessageModel<TokenInfoModel>> GetUserTokenRefresh(string token = "");
    }
}
